let debounce = (fn, delay) => {
    // fn为业务函数
    let timer = null;
    return function () {
        clearTimeout(timer);
        timer = setTimeout( ()=> {
            fn()    // 业务函数
        }, delay)
    }
}

export default debounce;